package com.leo.customer.entity.RequestBody

import javax.validation.constraints.NotBlank
import javax.validation.constraints.Pattern

data class Authenticate(
        @NotBlank(message = "姓名不能为空")
        val name: String,
        @Pattern(regexp = "/(^\\d{8}(0\\d|10|11|12)([0-2]\\d|30|31)\\d{3}$)|(^\\d{6}(18|19|20)\\d{2}(0\\d|10|11|12)([0-2]\\d|30|31)\\d{3}(\\d|X|x)$)/", message = "身份证号不正确")
        val identityNumber: String)
